/**
 * 
 * @author luo
 * @email luo4521@online.net.tw
 * 2010-1-28 10:34
 */
package com.addcn.texas.view.components
{		
	import flash.display.*;	
	
	public class Becloud extends MovieClip
	{		
		private var _parent : Object;
		function Becloud (r_parent : Object) : void {	
			this._parent = r_parent;
			this.alpha = 0.7;	
		}	
		
		public function setAlpha(r_num : Number) : void {
			this.alpha = r_num;
		}
		
		public function show() : void
		{
			if (this._parent != null) {	
				this._parent.addChildAt(this, 0);
				this.width = this._parent.stage.stageWidth;
				this.height = this._parent.stage.stageHeight;				
				this.x = (this._parent.stage.stageWidth -this.width) * 0.5;
				this.y = (this._parent.stage.stageHeight - this.height) * 0.5;	
			}
		}
		
		public function hide() : void 
		{
			this.parent.removeChild(this);
		}
				
	}
	
}
